/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package classloader;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 *
 * @author Oksana_Moroz
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {        
        for (;;) {                        
            Class clazz = Class.forName("classloader.TestModule", true, new DynamicClassLoader("src"));            
            Object object = clazz.newInstance();
            System.out.println(object);
            new BufferedReader(new InputStreamReader(System.in)).readLine();
        }
    }
}
